package com.ggy.ggyimagesearchmcp;

import com.ggy.ggyimagesearchmcp.tools.ImageSearchTool;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

import java.awt.*;

@SpringBootApplication
public class GgyImageSearchMcpApplication {

	public static void main(String[] args) {
		SpringApplication.run(GgyImageSearchMcpApplication.class, args);
	}

	@Bean
	public ToolCallbackProvider imageSearchTools(ImageSearchTool tool){
		return MethodToolCallbackProvider.builder().toolObjects(tool).build();
	}
}
